/*
 * @Author: sbotlp
 * @Email: sbotlp@sina.com
 * @Date: 2019-06-29 08:57:26
 * @LastEditTime: 2019-06-30 10:31:03
 * @Description: http://www.sbotlp.com.cn
 */
@import './reset.scss';
@import '~antd/dist/antd.css';
.loading{
  position: relative;
  .loading-content{
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #000;
    opacity: .5;
    z-index: 1055;
    .spin{
      position: absolute;
      left: 50%;
      top: 50%;
      transform: translate(-50%,-50%);
      z-index: 9999999;
      color: red;
      .ant-spin-dot-item{
        background-color: red;
      }
    }
  }
}
.smart-form{
  .label{
    color: #999;
    display: block;
    margin-bottom: 6px;
    line-height: 19px;
    font-weight: 400;
    font-size: 13px;
    text-align: left;
    white-space: normal;
    .required{
      color: #ff0000;
      font-style: normal;
      font-size: 16px;
      padding-left: 2px;
      box-sizing: content-box;
    }
  }
  .note-error{
    display: block;
    margin-top: 6px;
    padding: 0 1px;
    font-style: normal;
    font-size: 11px;
    line-height: 15px;
    color: #D56161;
  }
  .form-error{
    .ant-input{
      border-color: red;
      background: #fff0f0;
    }
    .ant-input-affix-wrapper:hover .ant-input:not(.ant-input-disabled){
      border-color: red !important;
    }
    .ant-input:hover{
      border-color: red !important;
    }
    .ant-input:focus{
      box-shadow: 0 0 0 2px rgba(251, 66, 23, 0.2) !important;
    }
    .ant-input-number{
      border-color: red;
      background: #fff0f0;
    }
    .ant-input-number:hover{
      border-color: red !important;
    }
    .ant-input-number-focused{
      box-shadow: 0 0 0 2px rgba(251, 66, 23, 0.2) !important;
    }
    .ant-select-selection--single{
      border-color: red;
      background: #fff0f0;
    }
    .ant-select-focused .ant-select-selection, .ant-select-selection:focus, .ant-select-selection:active{
      box-shadow: 0 0 0 2px rgba(251, 66, 23, 0.2) !important;
    }
  }
}
.ant-btn{
  margin-right: 10px;
}